<h3>购买历史</h3>
<ul class="hot_list" id="product_list">
  <% for product in buy_history  %>
    <li>
      <%= render :partial =>'/products/product_detail',:object=>product%>
      <div class="action_link">
        <a href="javascript:void(0);" onclick="addToCart(<%=product.id%>);" class='action_buy' >
          购买
        </a>
        <a href="/comments/new?product_id=<%=product.id%>" title="评论" class="action_comment" rel="facebox[.facebox_wrapper]">
          评论获积分
        </a>
      </div>
    </li>
  <%  end %>
</ul>